#include<sys/inotify.h>
#include <pthread.h>

class FolderInotify
{
public:
	FolderInotify();
	~FolderInotify();
    bool init();
    void run();
    void stop();
    void start();
    int mask;
    void (*inotifyEventDeal)(void *param, struct inotify_event *event);
    bool inotifyAddWatch(char * folderName);


	int inotifyFd;
	int wd;
    void *dealParam;

private:
    bool exitflag;
};